import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import 'package:xv_flutter/router/router_handler.dart';

class Routers{
  
  static void configureRouters(Router router){
    router.notFoundHandler = Handler(handlerFunc: (BuildContext context,Map<String,dynamic> params){
      print('Error========> ROUTER WAS NOT FOUNT!!!!!!');
      return;
    });

    router.define('/app',handler: appHandler); // app首页
    router.define('/web',handler: webHandler);
    router.define("/detail", handler: detailsHandler); // 商品详情页面
    router.define("/news_detail", handler: newsDetailsHandler);
    router.define("/about_contact", handler: contactHandler);

  }
}